export class MouseEvent {
  constructor(editor, container, view) {
    this.editor = editor;
    this.container = container;
    this.view = view;
  }

  selectionchangeHandler_(selection) {
    if (selection) {
      this.editor.setSelection(selection.anchor, selection.focus);
    }
  }
  addListeners() {
    this.view.on("selection-change", this.selectionchangeHandler_.bind(this));
  }
}
export default MouseEvent;
